package com.dy.design_pattern_study.flyweight_pattern.dome2.impl;

import com.dy.design_pattern_study.flyweight_pattern.dome2.Flyweight;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-23
 * @Content 具体的享元类 -共享
 * 为内部状态增加存储空间
 */
public class ConcreteFlyweight extends Flyweight {
    @Override
    public void operation(int extrinsicstate) {
        System.out.println("具体的享元类：" + getClass().getSimpleName() + ","+ extrinsicstate);
    }
}
